/*
 * TSession.h
 *
 *  Created on: 2012-10-23
 *      Author: tutu
 */

#ifndef TSESSION_H_
#define TSESSION_H_

#include "TUser.h"

class TSession
{
// Member
private:
	TUserPointer _user;
	QString _token;

// Method
public:
	TSession();
	virtual ~TSession();

// Getter and Setter
public:
    QString getToken() const
    {
        return _token;
    }

    TUserPointer getUser() const
    {
        return _user;
    }

    void setToken(QString _token)
    {
        this->_token = _token;
    }

    void setUser(TUserPointer _user)
    {
        this->_user = _user;
    }

};

typedef QSharedPointer<TSession> TSessionPointer;

#endif /* TSESSION_H_ */
